<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport"
        content="width=device-width,user-scalable=0,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
    <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
    <title>Terms of Use</title>
    <style>
        body {
            margin: 10px 0.4rem;
            font-size: 15px;
            line-height: 22px;
            font-family: Helvetica, sans-serif, Microsoft Yahei, Arial, Lucida, Verdana;
            word-wrap: break-word;
        }

        a {
            color: #409eff;
            font-weight: bolder;
            text-decoration: none;
        }

        p {
            font-size: 0.28rem;
            font-family: Roboto, Roboto;
            font-weight: 400;
            color: #191919;
            line-height: 0.44rem;
        }

        .title{
            margin: 0.5rem 0 0.4rem;
            text-align: center;
            font-size: 0.48rem;
            font-family: Roboto, Roboto;
            font-weight: 900;
            color: #000;
            line-height: 0.6rem;
        }

    </style>
    <script>
        (function (window, html) {
              // 规定默认的设计稿宽度720px
              const designWidth = 720;
              function recalc() {
                const windowWidth = html.clientWidth < designWidth ? html.clientWidth : designWidth;           
                // *100 之后，则样式中rem的值就需要相应的缩小100倍
                // 即：设计稿中的20px，在样式中就要写成0.2rem
                const fontSize = windowWidth / designWidth * 100;            
                setFontSize(fontSize);
              }          
              function setFontSize(fontSize) {
                html.style.fontSize = `${fontSize}px`;
              }
              // 监听resize
              window.addEventListener('resize', recalc);
              recalc();
        }(window, document.documentElement));

        function  getTopLevelDomain(url = window.location.href) {
            let hostname = new URL(url).hostname;
            let parts = hostname.split(".");
            if (parts.length > 2) {
                // console.log(parts.slice(-2).join("."))
                return parts.slice(-2).join(".");
            } else {
                // console.log(hostname)
                return hostname;
            }
        }
        window.onload = function() {
            var domainDiv = document.getElementById('domain');
            domainDiv.innerHTML=getTopLevelDomain();
        }
    </script>
</head>

<body>
    <div class="title">Terms of Use</div>
    <p>When visiting <span id="domain"></span> website and/or using its any software, game, you fully agree with it on its "Privacy Policy" and "Terms of Use" conditions. If you do not agree on any of these conditions, you are not allowed to use the website and/or its services. <span id="domain"></span> has the right to update and modify the policies any time. The visitors always should check the related pages to see updates.</p>
    <p>Access Restrictions <span id="domain"></span> website is suitable for the visitors over 13 year age, the younger visitors are suggested to use its service and games together with their parents.</p>
    <p>Proprietary Rights of the Games Most of the published games are submitted or suggested to us by their creators, proprietary rights owners. <span id="domain"></span> can not confirm if they have respected the others intellectual properties or rights. Upon receiving notification in accordance with any related copyright organization or owner, CarGames.Com will immediately remove games in question.</p>
    <p>Outgoing and Incoming Links <span id="domain"></span> does not accept any responsibility about the websites which are linking to our website and the outgoing links in the games published at the website.</p>
    <p>Advertisements <span id="domain"></span> does not accept any responsibility about the advertisements which are published at the website.</p>

</body>

</html>
